package com.ruoyi.violate.domain;

import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 product_data
 * 
 * @author ruoyi
 * @date 2023-06-02
 */
@Data
@ExcelIgnoreUnannotated
public class ProductData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 店铺名称 */
    private String shopName;

    /** 商品id */
    @ExcelProperty(value = "商品id", index = 0)
    @Excel(name = "商品id")
    private String commodityId;

    /** 商品类目 */
    @ExcelProperty(value = "一级类目", index = 1)
    @Excel(name = "一级类目")
    private String commodityClass1;

    /** 商品类目 */
    @ExcelProperty(value = "商品类目", index = 2)
    @Excel(name = "商品类目")
    private String commodityClass;

    /** 自定义分类 */
    @ExcelProperty(value = "自定义分类", index = 3)
    @Excel(name = "自定义分类")
    private String classify;

    /** 商品价格 */
    @ExcelProperty(value = "价格", index = 4)
    @Excel(name = "价格")
    private String commodityPrice;

    /** 最低促销价 */
    @ExcelProperty(value = "最低促销价", index = 5)
    @Excel(name = "最低促销价")
    private String promotionalPrice;

    /** 发布时间 */
    @ExcelProperty(value = "发布时间", index = 6)
    @Excel(name = "发布时间")
    private String releaseTime;

    /** 商品状态 */
    @ExcelProperty(value = "商品状态", index = 7)
    @Excel(name = "商品状态")
    private String itemStatus;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopName", getShopName())
            .append("commodityId", getCommodityId())
            .append("commodityClass", getCommodityClass())
            .append("classify", getClassify())
            .append("commodityPrice", getCommodityPrice())
            .append("promotionalPrice", getPromotionalPrice())
            .append("releaseTime", getReleaseTime())
            .append("itemStatus", getItemStatus())
            .toString();
    }
}
